<clr-datagrid>
  <clr-dg-column [clrDgField]="'id'">ID</clr-dg-column>
  <clr-dg-column [clrDgSortBy]="quantityComparator">Qta</clr-dg-column>
  <clr-dg-column [clrDgSortBy]="prodComparator">Pro /t</clr-dg-column>

  <clr-dg-row *clrDgItems="let s of nodes">
    <clr-dg-cell>
      <a [routerLink]="'/main/node/'+s.id">
        {{s.label}}
      </a>
    </clr-dg-cell>
    <clr-dg-cell>{{s.quantity | format}} ({{s.bought | format}})</clr-dg-cell>
    <clr-dg-cell>{{s.prodPerSec | format}}</clr-dg-cell>
  </clr-dg-row>

  <clr-dg-footer>
    <clr-dg-pagination #pagination [clrDgPageSize]="ser.options.lines" [clrDgTotalItems]="nodes.length">
      {{pagination.firstItem + 1}} - {{pagination.lastItem + 1}} of {{pagination.totalItems}} nodes
    </clr-dg-pagination>
  </clr-dg-footer>
</clr-datagrid>
